package com.probox.common.core.enums;

public enum CustomerPrivilegeValEnum {

    freeGift("freeGift", "赠品"),
    coupon("coupon", "优惠券"),
    couponUpdate("couponUpdate", "优惠券(升级)"),
    product("good", "商品"),
    productUpdate("goodUpdate", "商品(升级)"),
    proboxCard("proboxCard", "套餐卡"),
    proboxCardUpdate("proboxCardUpdate", "套餐卡(升级)"),
    item("item", "服务项目"),
    itemUpdate("itemUpdate", "服务项目(升级)");

    private CustomerPrivilegeValEnum(String k, String v) {
        this.setKey(k);
        this.setValue(v);
    }

    public static String getNameByKey(String key) {
        String rst = "";
        for (CustomerPrivilegeValEnum oe : CustomerPrivilegeValEnum.values()) {
            if (oe.getKey().equals(key)) {
                rst = oe.getValue();
            }
        }
        return rst;
    }

    private String key;
    private String value;

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

}
